
package net.opengis.kml;

/** 
 * Schema fragment(s) for this class:
 * <pre>
 * &lt;xs:simpleType xmlns:ns="http://www.opengis.net/kml/2.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="listItemTypeEnum">
 *   &lt;xs:restriction base="xs:string">
 *     &lt;xs:enumeration value="radioFolder"/>
 *     &lt;xs:enumeration value="check"/>
 *     &lt;xs:enumeration value="checkHideChildren"/>
 *     &lt;xs:enumeration value="checkOffOnly"/>
 *   &lt;/xs:restriction>
 * &lt;/xs:simpleType>
 * </pre>
 */
public enum ListItemTypeEnum {
    RADIO_FOLDER("radioFolder"), CHECK("check"), CHECK_HIDE_CHILDREN(
            "checkHideChildren"), CHECK_OFF_ONLY("checkOffOnly");
    private final String value;

    private ListItemTypeEnum(String value) {
        this.value = value;
    }

    public String xmlValue() {
        return value;
    }

    public static ListItemTypeEnum convert(String value) {
        for (ListItemTypeEnum inst : values()) {
            if (inst.xmlValue().equals(value)) {
                return inst;
            }
        }
        return null;
    }
}
